//引入依赖
import request from "@/utils/request.js"

//获取全部公告
export const getAllAnnouncementService=(params)=>{
    
    return  request.get("/announcement/page",{params:params})
}
//查询最新公告
export const getLastAnnouncementService=(params)=>{
    
    return  request.get("/announcement/getLatestNotice",{params:params})
}

//获取详情
export const getDetailService=(id)=>{
  
return request.get("/announcement/getDetail?id="+id)
}

//下载公告
export const getDownLoadService=(url)=>{
  return  request.get("/announcement/download?url="+url)
}